package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.MiddlegroundMenuRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色权限关系表管理
 *
 * @author wrc
 * @date 2020/5/12
 */
@Repository
public interface MiddlegroundMenuRoleRepository extends JpaRepository<MiddlegroundMenuRole, Long> {

    List<MiddlegroundMenuRole> findAllByRoleIdEquals(Long roleId);
    void deleteAllByRoleIdEquals(Long roleId);
}
